package com.coach.util;

/**
 * Descriotion 应用成功应该返回OK,200 具体的业务异常，或逻辑错误需要根据业务定义
 *
 * @author cmonkey
 *
 */
public enum BusinessHttpStatus {

	GET_OBJECT_ERROR(801, "获取对象错误"),
	
	GET_OBJECT_SUCCESS(200,"获取对象成功"),

	USERS_VALIDATE_PASSOWRD(802, "密码验证错误"),

	USERS_VALIDATE_CAPTCHA_ERROR(803, "验证码错误"),

	OBJECT_ALREADY_EXISTS(804, "对象已经存在"),

	USERS_SEND_MAIL_ERROR(805, "发送邮件失败"),

	USERS_SEND_PHONE_ERROR(806, "发送短信失败"),

	TRACKS_SAVE_OSS_ERROR(807, "保存track到oss失败"),

	ICON_SIZE_OVERFLOW_ERROR(808, "图片超出允许单个文件大小"),

	OBJECT_NOT_EXISTS(809, "对象不存在"),

	WEBOBJECT_NOT_EXISTS(810, "URL链接地址对象不存在"),

	USER_NO_ACCESS_TO_DATA(811, "用户无访问此数据的权限"),

	MESSAGE_IS_NULL(812, "发送的消息内容为空"),

	MESSAGE_REPLYDESC_ERROR(813, "发送的消息标识不合法"),

	INSUFFICIENT_PERMISSIONS(814, "权限不足"),

	WEIXIN_TOKEN_ERROR(815, "微信开发者中心Token与服务器Token不一致"),

	WEIXIN_USER_UNBIND(816, "用户未绑定号朋账号"),

	EXCEED_THE_VOLUME(817, "超出指定容量"),

	MESSAGE_BAIDUMESSAGE_ERROR(818, "发送百度消息失败"),

	ACCOUNT_BIND_ERROR(819, "帐号已经被使用，或已经被绑定"),

	BEYOND_ACTIVITY_APPLYDATE(820 , "超出活动报名时间"),

	PRODUCT_DETAIL_NOT_EXISTS(821, "对应的装备明细表无此productLibraryId装备记录"),

	NOT_ENOUGH_NUMBER(822, "数量不足"),

	OWNER_PRODUCT_NOT_EXISTS(823, "用户没有此件装备"),

	USER_STATUS_EXCEPTION(824, "用户状态异常"),

	PRODUCT_NOT_EXISTS(825, "没有这个商品"),

	CAN_NOT_DISTRIBUTION_TO_YOUSELF(826, "不能配送给自己"),

	DONEE_NOT_EXISTS(827, "受赠人不存在"),

	BENEFACTOR_PRODUCT_NOT_EXISTS(828, "捐赠者没有此件装备"),

	COMPANYINFO_DUPLICATION_OF_NAME(829, "企业名称重复"),

	COMPANY_NOT_EXISTS(830, "企业不存在"),

	COMPANY_GRADE_NOT_ENOUGH(831, "企业可用组织结构级别不足"),

	MEMBER_IS_TRUE(832, "已经是成员状态"),

	MENBERS_HAS_REACHED_MAX(833, "已经达到数量最大值"),

	SHOPPING_CART_OWNER_IS_NULL(834, "购物车所有者为空"),

	BALANCE_NOT_ENOUGH(835, "余额不足"),

	COMPANY_IMPORT_FAIL(836, "企业成员导入失败"),

	EMAIL_MATCH_FAIL(837, "Email 不符合规则"),

	PHONE_MATCH_FAIL(838, "Phone 不符合规则"),

	USER_NOT_EXISTS(839, "没有这个用户"),

	MIN_DEPOSIT_MONEY_BALANCE_IS_ONE(840, "号朋币充值最小为1"),

	VIPINFO_NOT_EXISTS(841, "没有该级别的vip"),

	MEMBER_NO_RECOED(842, "成员没有运动记录"),

	DOES_NOT_SUPPORT_THE_COMPANY_LEVEL_DOWNGRADE(843, "不支持企业Vip级别降低"),

	COST_MONEY_NOT_ENOUGH(844, "消费的金额不足"),

	USER_IS_NOT_COMPANY_USER(845, "用户不是企业用户"),

	IS_ALREADY_THE_DEFAULT_VALUE(846, "当前设置的选项已经是默认值"),

	INVOICE_MONEY_NOT_ENOUGH(847, "余额不足"),

	THE_WRONG_ADDRESS(848, "错误的地址信息,查询不到此地址"),

	USERS_PERMISSIONS_IS_NOT_CALL(849, "不允许访问该用户数据"),
	
	TIME_CONFLICT(850, "时间冲突"),

	ONCE_AGAIN_JOINED_THE(851, "再次加入"),

	PARAMS_VALIDATE_ERROR(400, "输入参数不合法");
	

	private final int value;

	private final String reasonPhrase;

	private BusinessHttpStatus(int value, String reasonPhrase) {
		this.value = value;
		this.reasonPhrase = reasonPhrase;
	}

	/**
	 * Return the integer value of this status code.
	 */
	public int value() {
		return this.value;
	}

}
